﻿using System.Collections.Generic;

namespace Codemonk.Soya
{
    /// <summary>
    /// 工作薄转换器
    /// </summary>
    public interface IWorkbookParser
    {
        /// <summary>
        /// 配置文件地址
        /// </summary>
        string ConfigFilePath { get; set; }
        /// <summary>
        /// 读取器
        /// </summary>
        IWorkbookReader Reader { get; set; }
        /// <summary>
        /// 值转换器
        /// </summary>
        IStringConverter Converter { get; set; }
        /// <summary>
        /// 转换
        /// </summary>
        /// <param name="filename">文件名称</param>
        /// <returns>结果字典</returns>
        IDictionary<string, List<IDictionary<string, object>>> Parse(string filename);

    }
}
